// 样式
import './assets/css/index.scss';

import { createApp } from 'vue';
import { createPinia } from 'pinia';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

import App from './App.vue';
import router from './router';

const app = createApp(App);

import { debounce, handleIndex } from './utils';
app.config.globalProperties.$debounce = debounce;
app.config.globalProperties.$handleIndex = handleIndex;

import { House, User, Money, Setting, Document,ArrowDownBold,QuestionFilled } from '@element-plus/icons-vue';
app.component('House', House);
app.component('User', User);
app.component('Money', Money);
app.component('Setting', Setting);
app.component('Document', Document);
app.component('ArrowDownBold', ArrowDownBold);
app.component('QuestionFilled', QuestionFilled);

app.use(createPinia());

app.use(router);

app.use(ElementPlus);

app.mount('#app');
